﻿using System;
using System.Collections.Generic;
using System.Text;

namespace PCR.Logic
{
    using PCR.Base;
    
    /// <summary>
    /// User information class
    /// </summary>
    internal class User : GuidObject, IUser 
    {
        /// <summary>
        /// Get or set the user's name
        /// </summary>
        public string UserName 
        {
            get { return this._userName; }
            set { this._userName = value; }
        }
        string _userName = "";

        /// <summary>
        /// Get or set the password, we would encrypt it
        /// </summary>
        public string Password 
        {
            get { return this._password; }
            set { this._password = value; }
        }
        string _password = "";

        /// <summary>
        /// Get or set the user role
        /// Note : not implement current now
        /// </summary>
        public IUserRole Role 
        {
            get { throw new NotImplementedException(); }
            set { throw new NotImplementedException(); }
        }
    }
}
